<?php

   if (!empty($data->child_id)){
#--------------------------Jika_melompat_ke_id_lain
?>
   <a href="?r=fo/act/layanan&id=parent_id&v=<?php echo $data->child_id; ?>&v2=<?php echo $data->parent_id; ?>&trans_id=<?php if(isset($_GET['trans_id'])) echo $_GET['trans_id']; ?>&ext_id=<?php if(isset($data->ext_id)) echo $data->ext_id; ?>">
<?php
	}
	  else
	{
#--------------------------Tidak_lompat
?>
   <a class="btn btn-success" style="width:22%; margin-bottom: 5px; id="tmbh-item" href="?r=fo/act/index/key=parent_id&v=<?php echo $data->id; ?>&v2=<?php echo $data->parent_id; ?>&trans_id=<?php if(isset($_GET['trans_id'])) echo $_GET['trans_id']; ?>&ext_id=<?php if(isset($data->ext_id)) echo $data->ext_id; ?>">
<?php
	}
?>
<!-------------------------Caption_Name_Menu-->
<div class="caption">
	<br>
		<br>
            <b> <?php echo substr($data->name,0,32); ?> </b>
		</i>
		<br>
	<br>
<br>
</div>
</a>
